package com.lc.luzhengtang.conn;

import android.util.Log;

import com.google.gson.Gson;
import com.lc.luzhengtang.bean.PersonalBannerBean;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

/**
 * Created by Administrator on 2017/4/17.
 */
@HttpInlet(Conn.PERSONAL_SHOPPING_BANNER)
public class ConnPersonalShopBanner extends BaseAsyPost<PersonalBannerBean>{




    public ConnPersonalShopBanner( AsyCallBack<PersonalBannerBean> asyCallBack) {
        super(asyCallBack);



    }

    @Override
    protected PersonalBannerBean parser(JSONObject object) throws Exception {
        Log.d(object.toString(),"aaaaaaaaaaaaaaaaa");

        TOAST = object.optString("message");

        Gson gson=new Gson();

        PersonalBannerBean loginBean=new PersonalBannerBean();

        loginBean=gson.fromJson(object.toString(),PersonalBannerBean.class);


        return loginBean;




    }
}



